﻿@model SlideControllerModel.Index
<div class="page">
    <div class="pageHeader">
        <form id="pagerForm" onsubmit="return navTabSearch(this);" action="/sys/slide" method="GET">
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label>
                        标题：</label>
                    <input name="Title" type="text" maxlength="40" value="@Model.Title"/>
                </li>
                <li>
                    <label>
                        状态：
                    </label>
                    <select name="level">
                        <option value="" @(!Model.Status.HasValue ? "selected=selected" : string.Empty)>请选择</option>
                        <option value="True" @((Model.Status.HasValue && Model.Status.Value) ? "selected=selected" : string.Empty)>
                            可用</option>
                        <option value="False" @((Model.Status.HasValue && !Model.Status.Value) ? "selected=selected" : string.Empty)>
                            不可用</option>
                    </select>
                </li>
            </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                    检索</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        </form>
    </div>
    <div class="pageContent">
        <div class="panelBar">
            <ul class="toolBar">
                <li><a class="edit" href="/sys/slide/category" target="dialog" title="添加幻灯片分类" width="550"
                    height="420" mask="true" onclick="javascript:void(0);"><span>添 加</span></a></li>
                <li><a class="edit" href="/sys/slide/category/{param}" target="dialog" title="编辑幻灯片分类"
                    width="550" height="420" mask="true" onclick="javascript:void(0);"><span>编 辑</span></a></li>
                <li><a class="delete" href="/sys/slide/deletecategory/{param}" target="ajaxTodo"
                    title="确定要删除吗?"><span>删 除</span></a></li>
            </ul>
        </div>
        <table class="table" layouth="138" width="100%">
            <thead>
                <tr>
                    <th width="120">
                        所属
                    </th>
                    <th width="150">
                        标题
                    </th>
                    <th width="60">
                        宽
                    </th>
                    <th width="60">
                        高
                    </th>
                    <th width="80">
                        缩略图
                    </th>
                    <th width="80">
                        缩略图宽
                    </th>
                    <th width="80">
                        缩略图高
                    </th>
                    <th width="60">
                        优先级
                    </th>
                    <th width="60">
                        状态
                    </th>
                    <th width="130">
                        扩展信息
                    </th>
                    <th>
                        描述
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var o in Model.Categories)
                {
                    <tr target="param" rel="@o.Id">
                        <td>
                            @(o.Category)
                        </td>
                        <td>
                            @(o.Title)
                        </td>
                        <td>@o.Width
                        </td>
                        <td>@o.Height
                        </td>
                        <td>@o.Thumb
                        </td>
                        <td>@o.ThumbW
                        </td>
                        <td>@o.ThumbH
                        </td>
                        <td>
                            @o.Priority
                        </td>
                        <td>
                            @o.Status
                        </td>
                        <td>
                            @o.Extra
                        </td>
                        <td>
                            @o.Description
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>
